package com.pitaya.avatar.domain;

import com.pitaya.avatar.service.IClusterNode;

public class POI implements IClusterNode {
	private Long pid;
	private String name;
	private String letters;

	private double longitude;
	private double latitude;

	public Long getPid() {
		return pid;
	}
	public void setPid(Long pid) {
		this.pid = pid;
	}
	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getLetters() {
		return letters;
	}
	public void setLetters(String letters) {
		this.letters = letters;
	}
	
	@Override
	public String getNodeId() {
		return String.valueOf(getPid());
	}
	
	@Override
	public double getXAxis() {
		return getLongitude();
	}
	
	@Override
	public double getYAxis() {
		return getLatitude();
	}
}
